package com.server.questionbank.snframe.controller.Course.pojo.Exercises;

import com.server.questionbank.snframe.domain.Course.TKnowledge;
import lombok.Data;

import java.util.Date;

@Data
public class UpdateKnowledge {

    private Long recordId;

    /**
     * 课程ID
     */
    private Long courseId;

    /**
     * 章节ID
     */
    private Long cameraId;

    /**
     * 引用其他知识点ID
     */
    private Long quoteRecordId;

    /**
     * 引用时间
     */
    private Date quoteTime;

    /**
     * 文件类型
     */
    private String recordType;

    /**
     * 文件路径
     */
    private String recordUrl;

    /**
     * 知识点描述
     */
    private String knowledgeContent;

    /**
     * 文件占据空间大小
     */
    private Integer fileSize;

    /**
     * 是否公开
     */
    private Boolean isPublic;

    /**
     * 上传人
     */
    private String uploadBy;

    /**
     * 上传时间
     */
    private Date uploadTime;

    /**
     * 备注
     */
    private String recordRemark;

    public TKnowledge toTKnowledge() {
        return new TKnowledge(
                recordId,
                courseId,
                cameraId,
                quoteRecordId,
                quoteTime,
                recordType,
                recordUrl,
                knowledgeContent,
                fileSize,
                isPublic,
                uploadBy,
                uploadTime,
                recordRemark
        );
    }
}
